<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Installing Mariabackup (Applicable to MariaDB)">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002164603366.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="documenttype" content="usermanual">
  <meta name="prodname" content="csbs">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000002164603358">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Installing Mariabackup (Applicable to MariaDB)</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000002164603358"></a><a name="EN-US_TOPIC_0000002164603358"></a>
  <h1 class="topictitle1">Installing Mariabackup (Applicable to MariaDB)</h1>
  <div>
   <p>Before performing a MariaDB backup job, you need to manually install Mariabackup on all MariaDB nodes.</p>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li id="EN-US_TOPIC_0000002164603358__li1678375919578"><a name="EN-US_TOPIC_0000002164603358__li1678375919578"></a><a name="li1678375919578"></a><span>Log in to the host where the MariaDB instance is located and run the following command to check whether Mariabackup has been installed.</span><p></p><pre class="screen">mariabackup --version</pre>
      <ul>
       <li>Mariabackup has been installed if the version number is displayed. In this case, you do not need to perform <a href="#EN-US_TOPIC_0000002164603358__li75001462424">2</a>.</li>
       <li>Mariabackup has not been installed if no version number is displayed. In this case, perform <a href="#EN-US_TOPIC_0000002164603358__li75001462424">2</a>.</li>
      </ul> <p></p></li>
     <li id="EN-US_TOPIC_0000002164603358__li75001462424"><a name="EN-US_TOPIC_0000002164603358__li75001462424"></a><a name="li75001462424"></a><span>Install Mariabackup.</span><p></p><p>You can use the binary package or RPM package for installation.</p>
      <ul>
       <li>Install Mariabackup using a binary package.
        <ol type="a">
         <li>Find the <strong>mariabackup</strong> command in the bin folder in the MariaDB installation directory.</li>
         <li>Run the following command to install Mariabackup:<pre class="screen">ln -sf<strong> </strong><em>Installation directory/</em>bin/mariabackup/usr/bin/</pre></li>
         <li id="EN-US_TOPIC_0000002164603358__li8241624154815">Perform <a href="#EN-US_TOPIC_0000002164603358__li1678375919578">1</a> to check whether Mariabackup has been installed.</li>
        </ol></li>
       <li>Install Mariabackup using an RPM package.
        <ol type="a">
         <li>Run the following command to find the directory where the RPM package is stored:<pre class="screen">find / -name 'MariaDB-backup*'</pre></li>
         <li>Run the following command to install Mariabackup:<pre class="screen">rpm -ivh <em>RPM package directory/RPM package name</em></pre></li>
         <li>Perform <a href="en-us_topic_0000002164603358.html#EN-US_TOPIC_0000002164603358__li1678375919578">1</a> to check whether Mariabackup has been installed.</li>
        </ol></li>
      </ul> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="en-us_topic_0000002164603366.html">Step 3: Manually Installing the Backup Tool</a>
    </div>
   </div>
  </div>
 </body>
</html>